package com.scnlf.scnlf.portal.core.business.trade.entity;

import com.scnlf.scnlf.portal.core.business.common.enums.FlowTypeEnum;
import com.scnlf.scnlf.portal.core.business.common.enums.OrderStatusEnum;
import com.scnlf.scnlf.portal.core.business.common.enums.SideEnum;
import com.scnlf.scnlf.portal.core.common.entity.AuditingEntity;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import lombok.Data;
import lombok.experimental.Accessors;

@Entity
@Table(name = "trade_order")
@Data
@Accessors(chain = true)
public class TradeOrderEntity extends AuditingEntity {

  private Long positionId;

  private Long eventId;

  private String customerNo;

  @Enumerated(EnumType.STRING)
  private FlowTypeEnum flowStatus;

  @Enumerated(EnumType.STRING)
  private OrderStatusEnum orderStatus;

  private String symbol;

  @Enumerated(EnumType.STRING)
  private SideEnum side;

  private BigDecimal execPrice;

  private Long orderQty;

  private Long leaveQty;

  private String memo;

}
